define robcar position
(
	size [0.5 0.5 0.5]
	
	block(
		points 3
		point[0] [1 0.5]
		point[1] [0 1]
		point[2] [0 0]
		z [0.2 0.6]
	)
	color_rgba [ 1 0.1 0.1 1 ]
	
	drive "diff"
	
	robcar_laser()
)


define robcar_laser ranger
(
	sensor( 			
    	range [ 0.0  3.0 ]
	    fov 10
	   samples 10
	)
	
	block(
		points 4
		point[0] [0 1]
		point[1] [1 1]
		point[2] [1 0]
		point[3] [0 0]
		z [0 1]
	)
	
  # generic model properties
  color_rgba [ 0 0 1 1 ]
  size [ 0.2 0.2 0.2 ]
  pose [0.0 0.0 0.3 90]
)
